// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 使用配置好的axios
import axios from './axios'
// 引入element组件
import ElementUI from 'element-ui';
// 引入element样式
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 事件总线
Vue.prototype.$bus=new Vue();
Vue.config.productionTip = false

import store from './store/index.js'

// 替换vue本来的http模块
Vue.prototype.$http = axios
// 全局定义服务器地址
import{HOST}from './baseURL'
Vue.prototype.$host=HOST
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
